<template>
	<view class="system">
		<view class="message_top">
			<view class="message_top_title" :style="{top:computedTop}">消息详情</view>
			<view class="message_top_back" :style="{top:computedTop}" @click="Back">
				<image src="../../static/search/back.png" class="bfbimages"></image>
			</view>
		</view>
		
		<view class="system_title">维护通知</view>
		<view class="system_date">发布于：2023-12-07 07:19:33</view>
		<view class="system_date" style="color: #FE4B27;">系统公告</view>
		<view class="system_nr"></view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				menuButtonInfo: null,
				list1: [{
					name: '全部',
				}, {
					name: '未读',
				}]
			}
		},
		computed: {
			computedTop() {
				if (this.menuButtonInfo) {
					return `${this.menuButtonInfo.height * 2 - 6}px`;
				}
				return '0px';
			},
		},
		onLoad() {
			const info = uni.getMenuButtonBoundingClientRect();
			this.menuButtonInfo = info;
		},
		methods: {
			Back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
	.system {
		width: 100vw;
		min-height: 100vh;
		float: left;

		.message_top {
			width: 100%;
			height: 200rpx;
			position: relative;

			.message_top_title {
				width: 100%;
				text-align: center;
				font-family: PingFang SC, PingFang SC;
				font-weight: bold;
				font-size: 36rpx;
				color: #333333;
				position: absolute;
				left: 0;
				z-index: 2;
			}

			.message_top_back {
				width: 44rpx;
				height: 44rpx;
				position: absolute;
				left: 30rpx;
				z-index: 9;
			}
		}
		
		.system_title{
			width: 640rpx;
			height: auto;
			margin: 50rpx auto 0;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 39rpx;
			color: #000000;
		}
		.system_date{
			width: 640rpx;
			height: auto;
			margin: 20rpx auto 0;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 22rpx;
			color: #999999;
		}
		.system_nr{
			width: 640rpx;
			height: auto;
			margin: 20rpx auto 0;
		}
	}
</style>